Optimal. Leaf size=816 \[ -\frac{c \left (\left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) (m-n+1)+\frac{-d \left (m^2+(2-3 n) m+2 n^2-3 n+1\right ) b^4+a e (m+1) (m-n+1) b^3+6 a c d \left (m^2+(2-4 n) m+3 n^2-4 n+1\right ) b^2-4 a^2 c e \left (m^2+(2-n) m-3 n^2-n+1\right ) b-8 a^2 c^2 d \left (m^2+(2-6 n) m+8 n^2-6 n+1\right )}{\sqrt{b^2-4 a c}}\right ) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 \left (b-\sqrt{b^2-4 a c}\right ) f (m+1) n^2}-\frac{c \left (\left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) (m-n+1)-\frac{-d \left (m^2+(2-3 n) m+2 n^2-3 n+1\right ) b^4+a e (m+1) (m-n+1) b^3+6 a c d \left (m^2+(2-4 n) m+3 n^2-4 n+1\right ) b^2-4 a^2 c e \left (m^2+(2-n) m-3 n^2-n+1\right ) b-8 a^2 c^2 d \left (m^2+(2-6 n) m+8 n^2-6 n+1\right )}{\sqrt{b^2-4 a c}}\right ) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 \left (b+\sqrt{b^2-4 a c}\right ) f (m+1) n^2}+\frac{\left (c \left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) x^n+\left (b^2-2 a c\right ) \left (-d (m-2 n+1) b^2+a e (m+1) b+2 a c d (m-4 n+1)\right )+a b c (b d-2 a e) (m-3 n+1)\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (b x^n+c x^{2 n}+a\right )}+\frac{\left (c (b d-2 a e) x^n+b^2 d-2 a c d-a b e\right ) (f x)^{m+1}}{2 a \left (b^2-4 a c\right ) f n \left (b x^n+c x^{2 n}+a\right )^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 4.55205, antiderivative size = 816, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {1558, 1560, 364} \[ -\frac{c \left (\left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) (m-n+1)+\frac{-d \left (m^2+(2-3 n) m+2 n^2-3 n+1\right ) b^4+a e (m+1) (m-n+1) b^3+6 a c d \left (m^2+(2-4 n) m+3 n^2-4 n+1\right ) b^2-4 a^2 c e \left (m^2+(2-n) m-3 n^2-n+1\right ) b-8 a^2 c^2 d \left (m^2+(2-6 n) m+8 n^2-6 n+1\right )}{\sqrt{b^2-4 a c}}\right ) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 \left (b-\sqrt{b^2-4 a c}\right ) f (m+1) n^2}-\frac{c \left (\left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) (m-n+1)-\frac{-d \left (m^2+(2-3 n) m+2 n^2-3 n+1\right ) b^4+a e (m+1) (m-n+1) b^3+6 a c d \left (m^2+(2-4 n) m+3 n^2-4 n+1\right ) b^2-4 a^2 c e \left (m^2+(2-n) m-3 n^2-n+1\right ) b-8 a^2 c^2 d \left (m^2+(2-6 n) m+8 n^2-6 n+1\right )}{\sqrt{b^2-4 a c}}\right ) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 \left (b+\sqrt{b^2-4 a c}\right ) f (m+1) n^2}+\frac{\left (c \left (-d (m-2 n+1) b^3+a e (m+1) b^2+2 a c d (2 m-7 n+2) b-4 a^2 c e (m-3 n+1)\right ) x^n+\left (b^2-2 a c\right ) \left (-d (m-2 n+1) b^2+a e (m+1) b+2 a c d (m-4 n+1)\right )+a b c (b d-2 a e) (m-3 n+1)\right ) (f x)^{m+1}}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (b x^n+c x^{2 n}+a\right )}+\frac{\left (c (b d-2 a e) x^n+b^2 d-2 a c d-a b e\right ) (f x)^{m+1}}{2 a \left (b^2-4 a c\right ) f n \left (b x^n+c x^{2 n}+a\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1558
Rule 1560
Rule 364
Rubi steps
\begin{align*} \int \frac{(f x)^m \left (d+e x^n\right )}{\left (a+b x^n+c x^{2 n}\right )^3} \, dx &=\frac{(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^n\right )}{2 a \left (b^2-4 a c\right ) f n \left (a+b x^n+c x^{2 n}\right )^2}-\frac{\int \frac{(f x)^m \left (-a b e (1+m)-2 a c d (1+m-4 n)+b^2 d (1+m-2 n)+c (b d-2 a e) (1+m-3 n) x^n\right )}{\left (a+b x^n+c x^{2 n}\right )^2} \, dx}{2 a \left (b^2-4 a c\right ) n}\\ &=\frac{(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^n\right )}{2 a \left (b^2-4 a c\right ) f n \left (a+b x^n+c x^{2 n}\right )^2}+\frac{(f x)^{1+m} \left (\left (b^2-2 a c\right ) \left (a b e (1+m)+2 a c d (1+m-4 n)-b^2 d (1+m-2 n)\right )+a b c (b d-2 a e) (1+m-3 n)+c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) x^n\right )}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (a+b x^n+c x^{2 n}\right )}+\frac{\int \frac{(f x)^m \left (\left (a b e (1+m)+2 a c d (1+m-4 n)-b^2 d (1+m-2 n)\right ) \left (2 a c (1+m-2 n)-b^2 (1+m-n)\right )-a b c (b d-2 a e) (1+m) (1+m-3 n)-c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n) x^n\right )}{a+b x^n+c x^{2 n}} \, dx}{2 a^2 \left (b^2-4 a c\right )^2 n^2}\\ &=\frac{(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^n\right )}{2 a \left (b^2-4 a c\right ) f n \left (a+b x^n+c x^{2 n}\right )^2}+\frac{(f x)^{1+m} \left (\left (b^2-2 a c\right ) \left (a b e (1+m)+2 a c d (1+m-4 n)-b^2 d (1+m-2 n)\right )+a b c (b d-2 a e) (1+m-3 n)+c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) x^n\right )}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (a+b x^n+c x^{2 n}\right )}+\frac{\int \left (\frac{\left (-c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)+\frac{c \left (b^4 d-6 a b^2 c d+8 a^2 c^2 d-a b^3 e+4 a^2 b c e+2 b^4 d m-12 a b^2 c d m+16 a^2 c^2 d m-2 a b^3 e m+8 a^2 b c e m+b^4 d m^2-6 a b^2 c d m^2+8 a^2 c^2 d m^2-a b^3 e m^2+4 a^2 b c e m^2-3 b^4 d n+24 a b^2 c d n-48 a^2 c^2 d n+a b^3 e n-4 a^2 b c e n-3 b^4 d m n+24 a b^2 c d m n-48 a^2 c^2 d m n+a b^3 e m n-4 a^2 b c e m n+2 b^4 d n^2-18 a b^2 c d n^2+64 a^2 c^2 d n^2-12 a^2 b c e n^2\right )}{\sqrt{b^2-4 a c}}\right ) (f x)^m}{b-\sqrt{b^2-4 a c}+2 c x^n}+\frac{\left (-c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)-\frac{c \left (b^4 d-6 a b^2 c d+8 a^2 c^2 d-a b^3 e+4 a^2 b c e+2 b^4 d m-12 a b^2 c d m+16 a^2 c^2 d m-2 a b^3 e m+8 a^2 b c e m+b^4 d m^2-6 a b^2 c d m^2+8 a^2 c^2 d m^2-a b^3 e m^2+4 a^2 b c e m^2-3 b^4 d n+24 a b^2 c d n-48 a^2 c^2 d n+a b^3 e n-4 a^2 b c e n-3 b^4 d m n+24 a b^2 c d m n-48 a^2 c^2 d m n+a b^3 e m n-4 a^2 b c e m n+2 b^4 d n^2-18 a b^2 c d n^2+64 a^2 c^2 d n^2-12 a^2 b c e n^2\right )}{\sqrt{b^2-4 a c}}\right ) (f x)^m}{b+\sqrt{b^2-4 a c}+2 c x^n}\right ) \, dx}{2 a^2 \left (b^2-4 a c\right )^2 n^2}\\ &=\frac{(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^n\right )}{2 a \left (b^2-4 a c\right ) f n \left (a+b x^n+c x^{2 n}\right )^2}+\frac{(f x)^{1+m} \left (\left (b^2-2 a c\right ) \left (a b e (1+m)+2 a c d (1+m-4 n)-b^2 d (1+m-2 n)\right )+a b c (b d-2 a e) (1+m-3 n)+c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) x^n\right )}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (a+b x^n+c x^{2 n}\right )}-\frac{\left (c \left (\left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)-\frac{a b^3 e (1+m) (1+m-n)-4 a^2 b c e \left (1+m^2+m (2-n)-n-3 n^2\right )-b^4 d \left (1+m^2+m (2-3 n)-3 n+2 n^2\right )+6 a b^2 c d \left (1+m^2+m (2-4 n)-4 n+3 n^2\right )-8 a^2 c^2 d \left (1+m^2+m (2-6 n)-6 n+8 n^2\right )}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{(f x)^m}{b+\sqrt{b^2-4 a c}+2 c x^n} \, dx}{2 a^2 \left (b^2-4 a c\right )^2 n^2}-\frac{\left (c \left (\left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)+\frac{a b^3 e (1+m) (1+m-n)-4 a^2 b c e \left (1+m^2+m (2-n)-n-3 n^2\right )-b^4 d \left (1+m^2+m (2-3 n)-3 n+2 n^2\right )+6 a b^2 c d \left (1+m^2+m (2-4 n)-4 n+3 n^2\right )-8 a^2 c^2 d \left (1+m^2+m (2-6 n)-6 n+8 n^2\right )}{\sqrt{b^2-4 a c}}\right )\right ) \int \frac{(f x)^m}{b-\sqrt{b^2-4 a c}+2 c x^n} \, dx}{2 a^2 \left (b^2-4 a c\right )^2 n^2}\\ &=\frac{(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^n\right )}{2 a \left (b^2-4 a c\right ) f n \left (a+b x^n+c x^{2 n}\right )^2}+\frac{(f x)^{1+m} \left (\left (b^2-2 a c\right ) \left (a b e (1+m)+2 a c d (1+m-4 n)-b^2 d (1+m-2 n)\right )+a b c (b d-2 a e) (1+m-3 n)+c \left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) x^n\right )}{2 a^2 \left (b^2-4 a c\right )^2 f n^2 \left (a+b x^n+c x^{2 n}\right )}-\frac{c \left (\left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)+\frac{a b^3 e (1+m) (1+m-n)-4 a^2 b c e \left (1+m^2+m (2-n)-n-3 n^2\right )-b^4 d \left (1+m^2+m (2-3 n)-3 n+2 n^2\right )+6 a b^2 c d \left (1+m^2+m (2-4 n)-4 n+3 n^2\right )-8 a^2 c^2 d \left (1+m^2+m (2-6 n)-6 n+8 n^2\right )}{\sqrt{b^2-4 a c}}\right ) (f x)^{1+m} \, _2F_1\left (1,\frac{1+m}{n};\frac{1+m+n}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{2 a^2 \left (b^2-4 a c\right )^2 \left (b-\sqrt{b^2-4 a c}\right ) f (1+m) n^2}-\frac{c \left (\left (a b^2 e (1+m)+2 a b c d (2+2 m-7 n)-4 a^2 c e (1+m-3 n)-b^3 d (1+m-2 n)\right ) (1+m-n)-\frac{a b^3 e (1+m) (1+m-n)-4 a^2 b c e \left (1+m^2+m (2-n)-n-3 n^2\right )-b^4 d \left (1+m^2+m (2-3 n)-3 n+2 n^2\right )+6 a b^2 c d \left (1+m^2+m (2-4 n)-4 n+3 n^2\right )-8 a^2 c^2 d \left (1+m^2+m (2-6 n)-6 n+8 n^2\right )}{\sqrt{b^2-4 a c}}\right ) (f x)^{1+m} \, _2F_1\left (1,\frac{1+m}{n};\frac{1+m+n}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{2 a^2 \left (b^2-4 a c\right )^2 \left (b+\sqrt{b^2-4 a c}\right ) f (1+m) n^2}\\ \end{align*}
Mathematica [B] time = 7.35683, size = 13117, normalized size = 16.07 \[ \text{Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.055, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( fx \right ) ^{m} \left ( d+e{x}^{n} \right ) }{ \left ( a+b{x}^{n}+c{x}^{2\,n} \right ) ^{3}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (e x^{n} + d\right )} \left (f x\right )^{m}}{c^{3} x^{6 \, n} + b^{3} x^{3 \, n} + 3 \, a b^{2} x^{2 \, n} + 3 \, a^{2} b x^{n} + a^{3} + 3 \,{\left (b c^{2} x^{n} + a c^{2}\right )} x^{4 \, n} + 3 \,{\left (b^{2} c x^{2 \, n} + 2 \, a b c x^{n} + a^{2} c\right )} x^{2 \, n}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x^{n} + d\right )} \left (f x\right )^{m}}{{\left (c x^{2 \, n} + b x^{n} + a\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]